# -*- coding: 编码 -*-
"""
@creative_time = 2025/10/16 15:57
"""


class Bird:
    def __init__(self, name, weight, speed):
        self.name_ = name
        self.weight_ = weight
        self.speed_ = speed

    def fly(self, time):
        print(f"{self.name_}飞行距离为：{self.speed_*time}")

    def eat(self):
        print(f"{self.name_}进食后体重变化为：{self.weight_ + 1}")


bird1 = Bird("小黑", 2, 3)
bird2 = Bird("小白", 1, 2)


print("请输入飞行时间：")
a = int(input())
bird1.fly(a)
bird1.eat()
bird2.fly(a)
bird2.eat()
